package com.oa.admin.entity;


import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;


import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 房屋表
 * </p>
 *
 * @author syb123
 * @since 2019-01-22
 */
@Data
@TableName("admin_house")
@ApiModel(value = "房屋表")
public class House extends Model<House> {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @ApiModelProperty(value = "房屋编号")
    private String houseNum;

    @ApiModelProperty(value = "租赁时间")
    private Date leaseTime;

    @ApiModelProperty(value = "到期时间")
    private Date endTime;

    @ApiModelProperty(value = "提醒时间")
    private Date reminderTime;

    @ApiModelProperty(value = "月租")
    private String monthlyRent;

    @ApiModelProperty(value = "押金")
    private String cashPledge;

    @ApiModelProperty(value = "地址")
    private String address;

    @ApiModelProperty(value = "面积")
    private String area;

    @ApiModelProperty(value = "备注")
    private String remake;

    @ApiModelProperty(value = "用途(1-办公 2-宿舍)")
    private String uses;

    @ApiModelProperty(value = "是否删除（1-已删除 2-未删除）")
    private Integer isDeleted;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}